package com.method.Test;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入你要测的数");
        int num =sc.nextInt();
        method( num);
    }
    public static void method(int num){
        if (num%2==0){
            System.out.println(num + "是偶数");
        }else{
            System.out.println(num + "是奇数");
        }

    }
}
